import request from '/@/utils/request';

// 查询用户签到记录列表
export function listRecord(query?: Object) {
  return request({
    url: '/module/user/sign/record/list',
    method: 'get',
    params: query
  })
}

// 查询用户签到记录列表
export function listSign(query?: Object) {
  return request({
    url: '/module/user/sign/record/signList',
    method: 'get',
    params: query
  })
}

// 查询用户签到记录详细
export function getRecord(id?: number) {
  return request({
    url: '/module/user/sign/record/' + id,
    method: 'get'
  })
}

// 新增用户签到记录
export function addRecord(data?: Object) {
  return request({
    url: '/module/user/sign/record',
    method: 'post',
    data: data
  })
}

// 修改用户签到记录
export function updateRecord(data?: Object) {
  return request({
    url: '/module/user/sign/record',
    method: 'put',
    data: data
  })
}

// 修改用户签到记录
export function repayRecord(id?: number) {
  return request({
    url: '/module/user/sign/record/repay/' + id,
    method: 'delete',
  })
}


// 删除用户签到记录
export function delRecord(id?: number) {
  return request({
    url: '/module/user/sign/record/' + id,
    method: 'delete'
  })
}

// 导出用户签到记录
export function exportRecord(query?: Object) {
  return request({
    url: '/module/user/sign/record/export',
    method: 'get',
    params: query
  })
}

// 查询用户签到记录列表
export function UserNum(query?: Object) {
  return request({
    url: '/module/user/sign/record/sigNum',
    method: 'get',
    params: query
  })
}
